"""添加产品页面"""
from selenium.webdriver.common.by import By

from page.base_page import BasePage


class AddProductPage(BasePage):
    url="/index.php?m=product&a=add"
    #定位器
    title_locator=(By.CSS_SELECTOR,"body > div.container > div.page-header > h4")
    def get_title(self):
        #进入添加产品成功提示
        return self.find_element(self.title_locator).text